Fixes a mistake in changeset 12732
authorTim Deegan <Tim.Deegan@xensource.com>
Wed, 6 Dec 2006 10:05:41 +0000 (10:05 +0000)
committerTim Deegan <Tim.Deegan@xensource.com>
Wed, 6 Dec 2006 10:05:41 +0000 (10:05 +0000)
Signed-off-by: Xiaohui Xin <xiaohui.xin@intel.com>
Signed-off-by: Anthony Xu <anthony.xu@intel.com>
Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
xen/arch/x86/mm/shadow/common.c

index 1f295758d843917c240c4901580898d933a4d1e2..881f91a81d7d3cd97d5da94f08512330008d0875 100644 (file)
@@ -1280,7 +1280,7 @@ sh_gfn_to_mfn_foreign(struct domain *d, unsigned long gpfn)
          * Instead, just count the number of l3es from zero.  It's safe
          * to do this because we already checked that the gfn is within
          * the bounds of the p2m. */
-        l3e += (((addr) & VADDR_MASK) >> L3_PAGETABLE_SHIFT);
+        l3e += (addr >> L3_PAGETABLE_SHIFT);
 #else
         l3e += l3_table_offset(addr);        
 #endif